@extends('admins.layouts.default')
@section('content')
<div class="col-lg-12">
	<div class="panel panel-default">
		<div class="panel-heading">
			Create Post
			<span class="pull-right">{{ link_to_route('admin.post.index', 'Cancel') }}</span>
		</div>
		<div class="panel-body">
			<div class="row">
				<div class="col-lg-6">
					@if ($errors->any())
						{{ implode('', $errors->all('<div class="alert alert-danger" role="alert">:message</div>')) }}
					@endif
				
					{{ Form::open(['route' => 'admin.post.store', 'role' => 'form']) }}
						<div class="form-group">
						 	{{ Form::label('title', 'Title:') }}
	        				{{ Form::text('title', null, ['class' => 'form-control', 'placeholder' => 'Enter Title']) }}
						</div>
						<div class="form-group">
					        {{ Form::label('content', 'Content:') }}
					        {{ Form::textarea('content', null, ['class' => 'form-control', 'placeholder' => 'Enter Content', 'rows' => 5]) }}
						</div>
						{{ Form::submit('Đăng ký', ['class' => 'btn btn-info']) }}
					{{ Form::close() }}
				</div>
				<!-- /.col-lg-6 -->
			</div>
			<!-- /.row -->
		</div>
		<!-- /.panel-body -->
	</div>
	<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
@stop